GdiplusStartup (gdiplus)
Last changed: -155.104.37.18

.
Summary
GdiplusStartup has to be called before using any API in gdiplus.dll

C# Signature:

[DllImport("gdiplus.dll", CharSet=CharSet.Unicode, ExactSpelling=true)]
static extern int GdiplusStartup(out IntPtr token, ref StartupInput input,
out  StartupOutput output);

VB Signature:

Declare Function GdiplusStartup Lib "gdiplus.dll" (ByRef token As IntPtr, _
ByRef input As StartupInput, ByRef output As StartupOutput) As Integer

User-Defined Types:

[StructLayout(LayoutKind.Sequential)]
struct StartupOutput
{
    // Fields
    public IntPtr hook;
    public IntPtr unhook;

}

[StructLayout(LayoutKind.Sequential)]
struct StartupInput
{
    // Fields
    public int GdiplusVersion = 1;
    public IntPtr DebugEventCallback;
    public bool SuppressBackgroundThread = false;
    public bool SuppressExternalCodecs = false;
}

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

None as System.Drawing will call this API automatically when first API in gdiplus.dll is called by managed code.

Documentation